import { createApp } from 'vue'
import { createPinia } from 'pinia'
import App from './App.vue'
import router from './router/index.js'
import '@/permission'
import * as ElIcons from '@element-plus/icons-vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import PluginState from 'pinia-plugin-persistedstate'
import '@/permission'
// import '@/theme.css'
const app = createApp(App)
Object.keys(ElIcons).forEach((key) => {
     app.component(key, ElIcons[key])
    })
app.use(createPinia().use(PluginState)) 
app.use(ElementPlus)
app.use(router)
app.mount('#app')